﻿using AutoMapper;
using FlyingEye.MySqlApplication.Models;
using FlyingEye.Users.Models;
using FlyingEye.ESApplication.Models.PowderProcess;
using FlyingEye.MixingProcess.PowderProcess;

namespace FlyingEye
{
    internal class ApplicationProfile : Profile
    {
        public ApplicationProfile()
        {
            this.CreateMap<UserCreationOrder, UserCreationOrderModel>()
                .ReverseMap();
            this.CreateMap<UserCreationOrderModel, UnapprovedUserCreationOrder>();
            this.CreateMap<UserCreationOrderModel, User>();
            this.CreateMap<User, UserModel>();
            this.CreateMap<PowderProcessCompletion, PowderProcessCompletionRecord>();
            this.CreateMap<PowderFeedingAlarm, PowderFeedingAlarmRecord>();
            this.CreateMap<MixingEquipmentAlarm, MixingEquipmentAlarmRecord>();
        }
    }
}
